<?php
/**
 * 管理员的操作
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/21 0021
 * Time: 上午 11:12
 */
require_once '../include.php';
$act = $_REQUEST['act'];
$msg = '';
$id=isset($_REQUEST['id']) ? $_REQUEST['id'] : '';
if ($act == 'logout'){
    logout();
}elseif($act == 'addAdmin'){
    $msg = addAdmin();
}elseif($act == 'editAdmin'){
    $msg = editAdmin($id);
}elseif($act == 'delAdmin'){
    $msg = delAdmin($id);
}elseif($act == 'addUser'){
    $msg = addUser();
}elseif($act == 'editUser'){
    $msg = editUser($id);
}elseif($act == 'delUser'){
    $msg = delUser($id);
}elseif($act == 'addPro'){
    $msg = addPro();
}elseif($act == 'editPro'){
    $msg = editPro($id);
}elseif($act == 'delPro'){
    $msg = delPro($id);
}elseif($act == 'addCate'){
    $msg = addCate();
}elseif($act == 'editCate'){
    $msg = editCate($id);
}elseif($act == 'delCate'){
    $msg = delCate($id);
}elseif($act=="waterText"){
    $mes=doWaterText($id);
}elseif($act=="waterPic"){
    $mes=doWaterPic($id);
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<?php
if($msg){
    echo $msg;
}
?>
</body>
</html>
